﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
using YiSha.Entity.QixingManage;
using YiSha.Util;

namespace YiSha.Model.Result.QixingManage
{
    public class OrderRefundApplyDto
    {
        /// <summary>
        /// 所有表的主键
        /// long返回到前端js的时候，会丢失精度，所以转成字符串
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? Id { get; set; }
        /// <summary>
        /// 退款类型
        /// </summary>
        /// <returns></returns>
        public int? refundType { get; set; }
        /// <summary>
        /// 退款原因
        /// </summary>
        /// <returns></returns>
        public string remark { get; set; }
        /// <summary>
        /// 用户openid
        /// </summary>
        /// <returns></returns>
        public string openid { get; set; }

        /// <summary>
        /// 订单id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? orderid { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        /// <returns></returns>
        public string ordersn { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        /// <returns></returns>
        public float? amount { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? userid { get; set; }
        /// <summary>
        /// 订单明细id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? orderDetailId { get; set; }
        /// <summary>
        /// 货物id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? pwid { get; set; }
        /// <summary>
        /// 租户id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? tenant_id { get; set; }

        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? processtime { get; set; }

        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? createtime { get; set; }

        public int? status { get; set; }

        public string processnote { get; set; }

        public string proof_pics { get; set; }

        public float? product_price { get; set; }

        public int? product_count { get; set; }

        public float? product_real_price { get; set; }

        public string process_man { get; set; }

        public string receive_man { get; set; }

        public DateTime? receive_time { get; set; }

        public string receive_note { get; set; }

        public string product_pic { get; set; }

        public string product_name { get; set; }

        public string return_phone { get; set; }

        public string return_name { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? company_address_id { get; set; }

        public string address_name { get; set; }

        public string name { get; set; }

        public string phone { get; set; }

        public string province { get; set; }

        public string city { get; set; }

        public string region { get; set; }

        public string detail_address { get; set; }

        public string goods_pic { get; set; }

        public string goods_name { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? goodsid { get; set; }

        public string product_attr { get; set; }

        public string nickname { get; set; }

        public List<RefundItemsEntity> itemsEntities = new List<RefundItemsEntity>();
    }
}
